package com.briup.ch11;

import java.io.*;

/**
 * @author yuxi
 * @version 1.0
 * @date 2025/10/16
 * @Description:
 */
public class Test13_Print {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new FileReader("test2.txt"));
        //PrintStream ps=System.out;//System.out默认是控制台输出
        PrintStream ps=new PrintStream(new FileOutputStream("test3.txt",true));
        String line;
        while((line=br.readLine())!=null) {
                ps.println(line);
                ps.flush();
        }
        ps.close();
        br.close();

    }
}
